using System;
using System.Collections;
using System.Collections.Generic;
using Mirror;
using UnityEngine;
using UnityEngine.Events;

namespace Shows_3D
{
    [Serializable]
    public class ServerConnectEvent : UnityEvent<NetworkConnection>
    {
    }
    [Serializable]
    public class ServerDisconnectEvent : UnityEvent<NetworkConnection>
    {
    }
    public class Shows3DNetworkManager : NetworkManager
    {
        public ServerConnectEvent onServerConnectEvent;
        public ServerDisconnectEvent onServerDisconnectEvent;
        public override void OnServerConnect(NetworkConnection conn)
        {
            onServerConnectEvent.Invoke(conn);
        }

        public override void OnServerDisconnect(NetworkConnection conn)
        {
            base.OnServerDisconnect(conn);
            onServerDisconnectEvent.Invoke(conn);
        }
    }
}